package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    //数据库查询
    User findByUsername(String username);
    //分页查询
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    void saveUser(User user, Integer[] roleIds);

    User findById(Integer id);

    Integer[] findRoleIdsByUserId(Integer id);

    void updateUser(User user, Integer[] roleIds);

    void deleteUser(Integer id);

    List<Menu> findByUsername01(String username);

    void updateStation(Integer userId, Integer station);

    User findByTelephone(String telephone);

    void updatePassword(Integer id, String password01);

    List<User> findHealth();

    String findImg(String username);

}
